package com.lagou.rabbitmq.config;

import com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator;
import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/** @author suikelei */
@Configuration
@MapperScan("com.lagou.rabbitmq.**.mapper")
public class MybatisPlusConfig {

    /** 雪花算法 */
    @Bean
    public IdentifierGenerator snowflake() {
        return new DefaultIdentifierGenerator();
    }
}
